<ion-view hide-nav-bar="false" view-title="产品管理">
	<ion-nav-bar class="bar-stable">
      <ion-nav-back-button class="button-clear" style="padding-left: 15px;">
       
        <i style="display: block;width: 22px;height:22px;margin-top: 4px;background: url('../img/back.png') center/22px 22px"></i>
      </ion-nav-back-button>
    </ion-nav-bar>
  <ion-content class="wap3-user wap3-center has-tabs" ng-class="{'wap3-ios-hade':platform.IOSAPP}" style="background-color: #f0eff5;">
    <div ng-repeat="p in hotList2" ng-click="toView(p.pType, p.fpFundInfoDTO ? p.fpFundInfoDTO.id : p.productDTO.code)" style="margin-top: 10px;">
      <div class="bg-fff w4-hot-list">
        <div class="row w4-hot-list-top">
          <div class="w4-hot-list-top-2" ng-if="p.pType==01">
            <img width="15px" src="https://www.superfa.cn/upload/bann/20160427/1461744645972simu.png"> 阳光私募
          </div>
          <div class="w4-hot-list-top-2" ng-if="p.pType==02">
            <img width="15px" src="https://www.superfa.cn/upload/bann/20160427/1461744667912xt.png"> 集合信托
          </div>
          <div class="w4-hot-list-top-2" ng-if="p.pType==03">
            <img width="15px" src="https://www.superfa.cn/upload/bann/20160427/1461744683204zg.png"> 集合资管
          </div>
          <div class="w4-hot-list-top-2" ng-if="p.pType==06">
            <img width="15px" src="https://www.superfa.cn/upload/bann/20160427/1461744602611pevc.png"> 股权基金
          </div>
          <div class="w4-hot-list-top-2" ng-if="p.pType==07">
            <img width="15px" src="img/zq_icon.png">
            债权基金
          </div>
          <div class="w4-hot-list-top-3" ng-if="p.pType != 01">{{p.productDTO.name}}</div>
          <div class="w4-hot-list-top-3" ng-if="p.pType == 01">{{p.fpFundInfoDTO.jjmc}}</div>

          <img ng-if="p.productDTO.saleStatus == 02" class="w4-hot-list-statusimg" src="img/status_yuren.png" width="44px" height="44px">
          <img ng-if="p.productDTO.saleStatus == 03" class="w4-hot-list-statusimg" src="img/status_mujizhong.png" width="44px" height="44px">
          <img ng-if="p.productDTO.saleStatus == 04" class="w4-hot-list-statusimg" src="img/status_muman.png" width="44px" height="44px">
          <img ng-if="p.productDTO.saleStatus == 05" class="w4-hot-list-statusimg" src="img/status_jieshu.png" width="44px" height="44px">
          <img ng-if="p.fpFundInfoDTO.jjzt == '开放运行'" class="w4-hot-list-statusimg" src="img/simu_open.png" width="44px" height="44px">
          <img ng-if="p.fpFundInfoDTO.jjzt == '封闭运行'" class="w4-hot-list-statusimg" src="img/simu_close.png" width="44px" height="44px">
        </div>
        <div class="row w4-hot-list-cen" ng-if="p.pType != '01'" style="font-size: 12px">
          <div class="col">
            <div class="w4-hot-list-cen-info1" ng-if="p.pType!=06">预期年化</div>
            <div class="w4-hot-list-cen-info1" ng-if="p.pType==06">基准收益</div>
            <div class="w4-hot-list-cen-info2">{{p.productDTO.profitHight.expectAnnualRevenue }}</div>
          </div>
          <div class="col w4-hot-list-cen-info3">
            <div><span style="line-height: normal;"></span></div>
            <div>产品期限<span>{{p.productDTO.dueTime}}个月</span></div>
            <div ng-if="p.pType == '06'">组织形式<span>{{p.productDTO.productExpandDTO.peOrganizeShape | zuzhixingshi}}</span></div>
            <div ng-if="p.pType != '06'">投资领域<span>{{p.productDTO.investType | touzhihangye}}</span></div>
          </div>
        </div>
        <div class="row w4-hot-list-cen" ng-if="p.pType == '01'" style="font-size: 12px">
          <div class="col">
            <div class="w4-hot-list-cen-info1">涨跌幅</div>
            <div class="w4-hot-list-cen-info2">{{p.fpFundInfoDTO.lsjzJson[0].zdf || '--'}}</div>
          </div>
          <div class="col w4-hot-list-cen-info3">
            <div>最新净值<span>{{p.fpFundInfoDTO.lsjzJson[0].jzdw || '--'}}</span></div>
            <div>累计净值<span>{{p.fpFundInfoDTO.lsjzJson[0].ljjz || '--'}}</span></div>
            <div>基金经理<span>{{p.fpFundInfoDTO.jjjlmc}}</span></div>
          </div>
        </div>
        <div class="row row-no-padding" ng-if="p.pType != '01'" style="margin-bottom: 10px">
          <div class="w4-home-progress">
            <div class="w4-home-progress-in" style="width:{{p.productDTO.process}}%"></div>
          </div>
          <div class="w4-home-progress-in-text">{{p.productDTO.process}}%</div>
        </div>
        <div class="pro-tuijian" ng-if="p.tuijianReson">推荐理由：{{p.tuijianReson}}</div>
        <div class="row w4-hot-list-top-5" >
          <div ng-if="p.pType != '01'" ng-click="shopProductTuijian(p.pType, p.productDTO,p.flagTuijian,$event)" class="col">{{p.flagTuijian=='1'?'取消推荐':'推荐'}}</div>
          <div ng-if="p.pType == '01'" ng-click="shopProductTuijian(p.pType, p.fpFundInfoDTO,p.flagTuijian,$event)" class="col">{{p.flagTuijian=='1'?'取消推荐':'推荐'}}</div>
          <div ng-if="p.pType != '01'" class="col" ng-click="shopProductTop(p.pType, p.productDTO,$event)">置顶</div>
          <div ng-if="p.pType == '01'" class="col" ng-click="shopProductTop(p.pType, p.fpFundInfoDTO,$event)">置顶</div>
          <div  ng-if="p.pType != '01'" ng-click="productAddToShop(p.pType, p.productDTO,$event)" class="col shop-product-delete">
            <i></i>删除
          </div>
          <div ng-if="p.pType == '01'" ng-click="productAddToShop(p.pType, p.fpFundInfoDTO,$event)" class="col shop-product-delete">
            <i></i>删除
          </div>
        </div>

      </div>
    </div>
    <div ng-show="hotList2.length <= 0" style="text-align: center; padding: 100px; color: #666;">您还没有产品，请添加！</div>

  </ion-content>
  <div ui-sref="app.shopsProductAdd" class="w4-xtzgDe-bottom bg-fff shop-product-add">
    + 添加产品 &nbsp;
  </div>
</ion-view>